package top.healthylife.gateway.platform.baihang.api.api.rankauthentication;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.rankauthentication.name0002.req.BHReqPSFourElementsDto;

/**
 * 公安四要素认证
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "公安四要素认证" , info = "认证居民身份证的姓名、身份证号、有效期起止时间是否匹配")
public class BHPSFourElementsApi implements ParentFace<BHReqPSFourElementsDto, BHReqPSFourElementsDto> {

    private static final String PRODUCT_CODE = "NAME0002";

    @Override
    public BHReqPSFourElementsDto execute(BHReqPSFourElementsDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHReqPSFourElementsDto.class);
    }
}
